/*
 * @Author: your name
 * @Date: 2021-12-30 15:30:45
 * @LastEditTime: 2022-01-07 09:22:56
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \025 SDF_FR8012H_DJBC\examples\none_evm\ble_simple_peripheral\sd_code\sd_sh3001\sd_dev_i2c.h
 */
/**
  ******************************************************************************
  * @file    xxx.c 
  * @author  SD Electronics xxx
  * @version V1.0
  * @date    xx-xx-xx
  * @brief   xxxxxxxxxxxxxxxxxx.
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _SD_DEV_I2C_H
#define _SD_DEV_I2C_H


/* Includes ------------------------------------------------------------------*/



/** 
  * @说明  I2C硬件配置相关结构体 
  */
typedef struct
{
	enum system_port_t	pstI2C_GPIOPort;				/* I2C所在的GPIO管脚类型 */	
	enum system_port_bit_t	usI2CDATAPin;               /* I2C接收管脚 */	
	enum system_port_bit_t	usI2CCLKPin;                /* I2C发送管脚 */
    uint8_t I2C_Channel;
    uint8_t slave_addr;     
    uint8_t reg_addr;
    uint32_t i2CSpeed;
	uint8_t IRQn;                  	                    /* I2C中断号 */
}ST_I2C_PHY, *PST_I2C_PHY;  



/** 
  * @说明  I2C控制结构体 
  */
typedef struct
{
	bool	bInitFlag;	        /* I2C初始化配置标志，只能被初始化一次 */
	PST_I2C_PHY	pstI2CInfo;
}ST_I2C_CTRL, *PST_I2C_CTRL;  

#endif
/******************* (C) COPYRIGHT 2011 ShenZhenShiding electronics **************************/
